<?php

//echo '<pre>';print_r($params);echo '</pre>';die;
$data = array(
    'order-<alias:[\w-]+>'=>array('/web/post/offer'),
    '<alias:[\w-]+>-offer'=>array('/web/post/offer'),

    'sitemap'   => array('/web/page/sitemap'),
    '/gioi-thieu'   => array('/web/page/about'),
    '/bang-gia'   => array('/web/page/price'),
    '/tro-giup'   => array('/web/page/help'),
    '/lien-he'   => array('/web/page/contact'),
    

    '/dang-nhap'   => array('/web/customer/login'),
    '/thoat'   => array('/web/customer/logout'),
    '/cap-nhat-tai-khoan'   => array('/web/customer/update'),
    '/cap-nhat-mat-khau'   => array('/web/customer/password'),
    '/quen-mat-khau'   => array('/web/customer/forgot'),
    '/danh-sach-don-hang'   => array('/web/customer/bills'),
    '/xac-nhan-so-dien-thoai'   => array('/web/customer/verifyPhoneForgot'),
    
    '/don-hang/<code:([\d]+)>/in'   => array('/web/bill/viewPrint', 'defaultParams' => array('lang' => 'vi')),
    '/bill/<code:([\d]+)>/print'   => array('/web/bill/viewPrint', 'defaultParams' => array('lang' => 'en')),
    
    '/don-hang/<code:([\d]+)>'   => array('/web/bill/view', 'defaultParams' => array('lang' => 'vi')),
    '/bill/<code:([\d]+)>'   => array('/web/bill/view', 'defaultParams' => array('lang' => 'en')),
    
    '/robots'   => array('/sitemap/robots', 'urlSuffix'=>'.txt'),  
    '/sitemap'   => array('/sitemap/index', 'urlSuffix'=>'.xml'),  
    '/sitemap/<type>/<part>'   => array('/sitemap/part', 'urlSuffix'=>'.xml'),  
    '/sitemap/<type:(main)>'   => array('/sitemap/part', 'urlSuffix'=>'.xml'), 
    
    '/' => array('/web/page/index'),
    
    '/bai-viet/<cat_alias:([\w\-]+)>'   => array('/web/post/index', 'defaultParams' => array('lang' => 'vi')),
    '/article/<cat_alias:([\w\-]+)>'   => array('/web/post/index', 'defaultParams' => array('lang' => 'en')),
    
    
    '/bai-viet'   => array('/web/post/index', 'defaultParams' => array('lang' => 'vi')),
    '/article'   => array('/web/post/index', 'defaultParams' => array('lang' => 'en')),
    
    '/bai-viet/<cat_alias:([\w\-]+)>/<alias:([\w\-]+)>-<id:(\d+)>'   => array('/web/post/view', 'defaultParams' => array('lang' => 'vi')),
    '/article/<cat_alias:([\w\-]+)>/<alias:([\w\-]+)>-<id:(\d+)>'   => array('/web/post/view', 'defaultParams' => array('lang' => 'en')),
    


    '/p/<id>'   => array('/web/post/view'),
    
    '<_p1:\w+>'=>'<_p1>',
    '<_p1:\w+>/<_p2:\w+>'=>'<_p1>/<_p2>',
    '<_p1:\w+>/<_p2:\w+>/<_p3:\w+>'=>'<_p1>/<_p2>/<_p3>',
    '<_p1:\w+>/<_p2:\w+>/<_p3:\w+>/<_p4:\w+>'=>'<_p1>/<_p2>/<_p3>/<_p4>',
);
//echo '<pre>';print_r($data);echo '</pre>';die;
return $data;